#!/bin/bash
echo start deployment

if [ $# -lt 1 ]; then
    echo "Insert deployment directory:";read deployto;
else
    deployto=$1
fi


if [ -d "$deployto" ]; then
    ${MVN} -Dmaven.test.skip=true clean compile package install deploy:deploy -DaltDeploymentRepository="id::default::file://$deployto"
fi

echo end deployment
